package com.sky.cqculture.pojo;

import java.util.Date;

public class User {
    private Integer id;           // 用户ID
    private String username;      // 用户名
    private String phone;         // 手机号
    private String password;      // 密码
    private String avatar;        // 头像URL
    private Integer gender;       // 性别（0男，1女，2保密）
    private Date birthday;        // 出生日期
    private String bio;           // 个人简介
    private Date createTime;      // 创建时间
    private Date updateTime;      // 更新时间

    public User() {
    }

    public User(Integer id, String username, String phone, String password, String avatar, Integer gender, Date birthday, String bio, Date createTime, Date updateTime) {
        this.id = id;
        this.username = username;
        this.phone = phone;
        this.password = password;
        this.avatar = avatar;
        this.gender = gender;
        this.birthday = birthday;
        this.bio = bio;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getBio() {
        return bio;
    }

    public void setBio(String bio) {
        this.bio = bio;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", avatar='" + avatar + '\'' +
                ", gender=" + gender +
                ", birthday=" + birthday +
                ", bio='" + bio + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}